Installing Scala


Scala can be installed in any Unix or windows based system. Below are the steps to install for Ubuntu (14.04) for scala version 2.13.2. I am showing the steps for installing Scala (2.13.2) with Java version 8. It is necessary to install Java before installing Scala. You can also install latest version of Scala as well.

Step 1: Open the terminal
  • Install Java
  • sudo apt-add-repository ppa:webupd8team/java
  • sudo apt-get update
  • sudo apt-get install oracle-java8-installer
If you are asked to accept Java license terms, click on “Yes” and proceed. Once finished, let us check whether Java has installed successfully or not. To check the Java version and installation, you can type:
java -version

Step 2: Once Java is installed, we need to install Scala
  • cd ~/Downloads
  • wget http://www.scala-lang.org/files/archive/scala-2.13.2.deb
  • sudo dpkg -i scala-2.13.2.deb
  • scala –version
This will show you the version of Scala installed
Type scala on terminal to start scala

No comments:

Post a Comment